﻿using ServiceStack.DataAnnotations;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Summer.Model
{
    [Table("users")]
    public class Users
    {
        [Key]   //指定此列为主键（自动增长主键），不是自动增长主键时使用ExplicitKey
        public int UserId { get; set; }

        public string UserName { get; set; }

        public int UserAge { get; set; }

        public string UserSex { get; set; }

        public string UserAddress { get; set; }

        public string RoleCode { get; set; }
        [Computed]  //计算属性，打上此标签，对象地insert，update等操作会忽略此列
        public bool IsDeleted{ get; set; }
    }
}
